$font-sizes: (
  20: 20rpx,
  22: 22rpx,
  24: 24rpx,
  26: 26rpx,
  28: 28rpx,
  30: 30rpx,
  32: 32rpx,
  34: 34rpx,
  36: 36rpx,
  40: 40rpx,
  44: 44rpx,
  48: 48rpx,
);

$flex-jc: (
  start: flex-start,
  end: flex-end,
  center: center,
  between: space-between,
  around: space-around,
);
$flex-ai: (
  start: flex-start,
  end: flex-end,
  center: center,
  stretch: stretch,
);
$spacing-types: (
  m: margin,
  p: padding,
);
$spacing-directions: (
  t: top,
  r: right,
  b: bottom,
  l: left,
);
$spacing-sizes: (
  0: 0,
  5: 5rpx,
  10: 10rpx,
  15: 15rpx,
  20: 20rpx,
  25: 25rpx,
  30: 30rpx,
  35: 35rpx,
  40: 40rpx,
  45: 45rpx,
);

.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}
.fw-b {
  font-weight: bold;
}
.fr {
  float: right;
}
.fl {
  float: left;
}
.flex {
  display: flex;
  flex-flow: row nowrap;
} 
.flex-row-center{
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
}
.flex-col-center{
	display: flex;
	flex-flow: column wrap;
	justify-content: center;
	align-items: center;
}
.flex-between {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}
.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.flex-shrink-1 {
  flex-shrink: 1;
}
.border {
  border: 2rpx solid #eeeeee;
}
@each $var in (left, center, right) {
  .t-#{$var} {
    text-align: $var;
  }
}
@each $key, $value in $flex-jc {
  .jc-#{$key} {
    justify-content: $value;
  }
}
@each $key, $value in $flex-ai {
  .ai-#{$key} {
    align-items: $value;
  }
}
@each $key, $value in $font-sizes {
  .fs-#{$key} {
    font-size: $value;
  }
}
@each $key, $value in $spacing-sizes {
  .ti-#{$key} {
    text-indent: $value;
  }
}
@each $typeKey, $type in $spacing-types {
  // .m-1 .p-1
  @each $sizeKey, $size in $spacing-sizes {
    .#{$typeKey}-#{$sizeKey} {
      #{$type}: $size;
    }
  } // .mx-1 , .my-1 .px-1
  @each $sizeKey, $size in $spacing-sizes {
    .#{$typeKey}x-#{$sizeKey} {
      #{$type}-left: $size;
      #{$type}-right: $size;
    }
    .#{$typeKey}y-#{$sizeKey} {
      #{$type}-top: $size;
      #{$type}-bottom: $size;
    }
  } // .mt-1 .pt-1
  @each $directionKey, $direction in $spacing-directions {
    @each $sizeKey, $size in $spacing-sizes {
      .#{$typeKey}#{$directionKey}-#{$sizeKey} {
        #{$type}-#{$direction}: $size;
      }
    }
  }
}
@each $dir in (top, right, bottom, left) {
  .b-#{$dir} {
    border-#{$dir}: 2rpx solid #eeeeee;
  }
}
